declare const process: any;

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'


import '@/utils/console.js';


//注册element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import jsToView from 'js-view-test';
import 'js-view-test/dist/style.css';


// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


//全局组件注册
import globalComponents from './globalComponents';

import { mockXHR } from './mock'
if (process.env.NODE_ENV != 'production') {
  mockXHR()
}






const app = createApp(App)
//添加element-plus 图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus)
app.use(jsToView)
app.use(globalComponents)
app.use(router)
app.use(store)
app.mount('#app');

